---
id: 656491fa4e69005287eb5a9a
title: Крок 21
challengeType: 20
dashedName: step-21
---

# --description--

Перевірте результат, надрукувавши нову змінну.

# --hints--

Надрукуйте `new_password`.

```js
({ test: () => assert.match(code, /^print\s*\(\s*new_password\s*\)/m) })
```

# --seed--

## --seed-contents--

```py
import secrets
import string


def generate_password(length):
    # Define the possible characters for the password
    letters = string.ascii_letters
    digits = string.digits
    symbols = string.punctuation

    # Combine all characters
    all_characters = letters + digits + symbols

    password = ''
    # Generate password
    for _ in range(length):
        password += secrets.choice(all_characters)

    return password

--fcc-editable-region--
new_password = generate_password(8)

--fcc-editable-region--
```
